package icegps.com.pingdj.map.bean;


import android.graphics.Bitmap;
import android.support.v4.util.LruCache;

import java.util.TreeMap;

import icegps.com.pingdj.App;


/**
 * 地图绘制所需要的参数
 * Created by 111 on 2018/2/25.
 */

public class MapStatus {
    private float cx;
    private float cy;
    private float tx;
    private float ty;
    private float mx;
    private float my;
    private float newCy;
    private float multiple;
    private float oldSumTx;
    private float oldSumTy;
    private float xTrajectory;
    private float yTrajectory;
    private float newCx;
    private float angle;

    private TreeMap<String, Bitmap> bitmaps;

    public MapStatus() {
        multiple = 1.0f * 2.0f * 2.0f;
        tx = App.getInstance().getWindowWidth() / 2;
        ty = App.getInstance().getWindowHeight() / 2;
        if (tx < ty) {
            float temp;
            temp = tx;
            tx = ty;
            ty = temp;
        }
        bitmaps = new TreeMap<>();

    }

    public TreeMap<String, Bitmap> getBitmaps() {
        return bitmaps;
    }

    public float getAngle() {
        return angle;
    }

    public void setAngle(float angle) {
        this.angle = angle;
    }


    public float getNewCx() {
        return newCx;
    }

    public void setNewCx(float newCx) {
        this.newCx = newCx;
    }

    public float getNewCy() {
        return newCy;
    }

    public void setNewCy(float newCy) {
        this.newCy = newCy;
    }

    public float getOldSumTx() {
        return oldSumTx;
    }

    public void setOldSumTx(float oldSumTx) {
        this.oldSumTx = oldSumTx;
    }

    public float getOldSumTy() {
        return oldSumTy;
    }

    public void setOldSumTy(float oldSumTy) {
        this.oldSumTy = oldSumTy;
    }

    public float getxTrajectory() {
        return xTrajectory * multiple;
    }

    public void setxTrajectory(int xTrajectory) {
        this.xTrajectory = xTrajectory;
    }

    public float getyTrajectory() {
        return yTrajectory * multiple;
    }

    public void setyTrajectory(int yTrajectory) {
        this.yTrajectory = yTrajectory;
    }


    public float getCx() {
        return cx;
    }

    public void setCx(float cx) {
        this.cx = cx;
    }

    public float getCy() {
        return cy;
    }

    public void setCy(float cy) {
        this.cy = cy;
    }

    public float getTx() {
        return tx;
    }

    public void setTx(float tx) {
        this.tx = tx;
    }

    public float getTy() {
        return ty;
    }

    public void setTy(float ty) {
        this.ty = ty;
    }

    public float getMultiple() {
        return multiple;
    }

    public void setMultiple(float multiple) {
        this.multiple = multiple;
    }

    public float getMx() {
        return mx;
    }

    public void setMx(float mx) {
        this.mx = mx;
    }

    public float getMy() {
        return my;
    }

    public void setMy(float my) {
        this.my = my;
    }

    public float getSumTx() {
        return tx - cx * multiple;
    }

    public float getSumTy() {
        return ty - cy * multiple;
    }


}
